package com.chamei.libaray;


public class ButterKnife {
    public static void bind(Object object){
        // 获取类
        String className = object.getClass().getName()+"$$ViewBinder";
        try{
            // 创建类
            Class<?> clazz = Class.forName(className);
            ViewBind viewBind = (ViewBind) clazz.newInstance();
            // 执行bind方法
            viewBind.bind(object);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
